package org.newbee.des.zkclient;

import java.io.Serializable;

/**
 * Created by yujie on 2016/10/20.
 */
public class User implements Serializable {

    private String userName;

    private String password;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public static User of(String userName, String password) {
        User user = new User();
        user.setUserName(userName);
        user.setPassword(password);
        return user;
    }

    @Override
    public String toString() {
        return "{\"userName\":\"" + this.userName + "\",\"password\":\"" + password + "\"}";
    }
}
